/*有1、2、3、4四个数字，能组成多少个互不相同且无重复数字的三位数？都是多少？ */
public class Exerise_11 {
    public static void main(String[] args) {
       /* int arrays[] = new int[]{1, 2, 3, 4};
        int threeFigures[] = new int[3];
        for (int i = 0; i < threeFigures.length; i++) {
            int random = (int) (Math.random() * arrays.length);
            threeFigures[i] = arrays[random];
            for (int j = 0; j < i; j++) {
                if (threeFigures[i] == threeFigures[j]) {
                    i--;
                    break;
                }

            }
            System.out.print(threeFigures[i]);

        }
*/

        int count = 0;
        for (int i = 1; i <= 4; i++) {
            for (int j = 1; j <= 4; j++) {
                for (int k = 1; k <= 4; k++) {
                    if (i != j && j != k && i != k) {
                        System.out.println(i * 100 + j * 10 + k);
                        count++;
                    }
                }

            }
        }
        System.out.println("可以生成"+count+"个不重复的数组");
    }
}
